'use strict';

function collect_all_even(collection) {
  var num = [];
  for (let i = 0; i < collection.length; i++) {
    if(collection[i]%2==0){
      num.push(collection[i])
    }
  }
  return num;
}

module.exports = collect_all_even;
